package com.ikun.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ikun.service.PropertyPaymentsService;
import com.ikun.service.UserService;
import com.ikun.util.Result;

/**
 * @ClassName: OwnerController
 * @Author: 吴思伟
 * @CreateTime: 2025-04-06 00:04
 * @Description: TODO
 */
@Controller
@RequestMapping("/owner")
public class OwnerController {
    @Autowired
    private UserService userService;

    @Autowired
    private PropertyPaymentsService propertyPaymentsService;

    @PostMapping("/id")
    @ResponseBody
    public Result showAllOwnerDetailById(Integer id) {
        return Result.success(userService.findAllOwnerDetailById(id));
    }

    // @PostMapping("/payFees")
    // @ResponseBody
    // public Result payFees(@RequestBody PropertyPayments propertyPayments) {
    // return Result.success(propertyPaymentsService.addPropertyPayments(propertyPayments));
    // }

}
